# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=udis86
pkgver=1.7.2
pkgrel=9
pkgdesc='A minimalistic disassembler library.'
arch=('x86_64' 'aarch64')
url="http://udis86.sourceforge.net/"
license=('BSD')
groups=('blackarch' 'blackarch-reversing')
depends=('python')
source=("http://downloads.sourceforge.net/project/udis86/udis86/1.7/$pkgname-$pkgver.tar.gz")
sha512sums=('8cb35d70ac020cd74ced22252aa735a266e5db98d89df565a560baa4ace0cd730e9db838241b70c3b93c27d6b2c75a88edf9c357c864d0f0104323925371c96f')

build() {
  cd "$pkgname-$pkgver"

  ./configure --enable-shared --prefix=/usr

  make
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

  mv "$pkgdir/usr/share/docs" "$pkgdir/usr/share/doc"
}

